import { httpInstance } from '@/utils/request'

interface HandleAfterSalesAPIResData {
  code: number
  data: null
  msg: string
  time: string
}

export function handleAfterSalesAPI(afterId: string, token: string) {
  return httpInstance.post<
    HandleAfterSalesAPIResData,
    { after_id: string }
  >(
    'api/Project/startAfterSales',
    { after_id: afterId },
    { headers: { token } },
  )
}
